import { createRequest } from '/@/api/service';
const module = 'ib/spareparts/v1/SpareApi';

/**
 * @function 备品分类列表查询
 * @param data
 * @param header
 * @returns {Promise}
 */
function QUERY_SPARE_LIST(
  data: SparePartsSpare.QuerySpareListReq,
  header: object = {},
): Promise<SparePartsSpare.QuerySpareListResp> {
  return createRequest(`${process.env.APP_API_URL}${module}/querySpareList`, data, header, 'POST');
}

export { QUERY_SPARE_LIST };
